147f6ca02f6b0ad81e3940094c872568ec1517d1,driver-core/src/test/java/com/datastax/driver/core/HeartbeatTest.java,HeartbeatTest,should_send_heartbeat_when_requests_being_written_but_nothing_received,#,156
Before Change
public void should_send_heartbeat_when_requests_being_written_but_nothing_received() throws Exception {
Cluster cluster = Cluster.builder()
.addContactPoints(hostAddress.getAddress())
.withPort(scassandra.getBinaryPort())
.withProtocolVersion(ProtocolVersion.V2)
.withPoolingOptions(new PoolingOptions().setHeartbeatIntervalSeconds(3).setConnectionsPerHost(HostDistance.LOCAL, 1, 1))
.build();
// Prime 'ping' to never return a response this is a way to create outgoing traffic
After Change
public void should_send_heartbeat_when_requests_being_written_but_nothing_received() throws Exception {
Cluster cluster = Cluster.builder()
.addContactPoints(hostAddress.getAddress())
.withPort(scassandra.getBinaryPort())
.withPoolingOptions(new PoolingOptions().setHeartbeatIntervalSeconds(3).setConnectionsPerHost(HostDistance.LOCAL, 1, 1))
.build();
// Prime 'ping' to never return a response this is a way to create outgoing traffic